package cn.tedu.date;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.SimpleFormatter;

/**本类用与测试SimpleDateFormat日期转换工具类*/
public class TestSDF {
    public static void main(String[] args) {
        Date d1 = new Date();
        Date d2 = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat();
       SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss");
        String s1 = sdf.format(d1);
        String s2 = sdf2.format(d1);
        System.out.println(s1);
        System.out.println(s2);
    }
}
